/*
 * @Author: 'Chenfarry' '2925102113@qq.com'
 * @Date: 2024-07-22 10:57:37
 * @LastEditors: 'Chenfarry' '2925102113@qq.com'
 * @LastEditTime: 2024-08-14 16:43:09
 * @FilePath: \orderApp\typing.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/* eslint-disable no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
// 全局要用的类型放到这里

type IResData<T> = {
  retCode?: number
  code?: number
  retMsg: string
  data: T
  size?: number
  total?: number
}

// uni.uploadFile文件上传参数
type IUniUploadFileOptions = {
  file?: File
  files?: UniApp.UploadFileOptionFiles[]
  filePath?: string
  name?: string
  formData?: any
}

type SafeInfo = {
  bottom?: number
  top?: number
  left?: number
  right?: number
}

type UnitInfo = {
  unitCode?: string
  unitName?: string
}
enum TestEnum {
  A = 'a',
  B = 'b',
}

interface PublicPageInfo {
  extra?: object
  total?: string | number
}

interface PubliceInfo {
  size?: number | string
  total?: number | string
  current?: number | string
}
